#generate a flattened dir with all the dependencies from maven at ~/.m2/flatten

mkdir -p ~/.m2/flatten
find ~/.m2/repository/ -name *.jar -exec cp -vf {} ~/.m2/flatten/ \;